#define TestInFileName "pic.jpg"
#define TestOutFileName "out.jpg"
//Time Management 
#define DURATION 1000
#define SYS_DLPERIOD   DURATION//ms
#define SYS_ULPERIOD   DURATION //ms
#define SYS_IDLEPERIOD DURATION //ms
//Environment Setup
//User Setup
#define MAXUSER 20
#define USER 1
#define MAX 5 //priority queues sequences

//PHY OFDMA Parameter setup
#define FFTSIZE      1024 //default FFTSIZE size   1024
#define DDT_1024     720  //default DL data tones  720 based on 1024
#define DSBCL_1024   30   //default DL subchannels 30  based on 1024
#define DSBCR_1024   24   //default DL subcarriers 24  based on 1024
#define UDT_1024     768  //default UL data tones  768 based on 1024
#define USBCL_1024   35   //default UL subchannel  35  based on 1024
#define USBCR_1024   24   //default UL subcarriers 24  based on 1024

#define BWP 1
#define TMP 1
#define BW_MHZ 10*BWP //default 10M HZ
#define FRAMETIME  DURATION*TMP*2  //default 5 ms---to fit the requirement of SDL!
#define SYMBOLS       48*TMP*BWP //default 48symbols symbol time 102us
#define DSYMBOLS    30*TMP*BWP //default DL Subframe time has 30 symbols
#define USYMBOLS    18*TMP*BWP //default UL Subframe time has 18 symbols
#define DSYMBOLSPERSLOT 2      //DL symbols per slot
#define USYMBOLSPERSLOT 3      //UL symbols per slot
#define DMXSLOTS DSYMBOLS/DSYMBOLSPERSLOT*DSBCL_1024 //
#define UMXSLOTS USYMBOLS/USYMBOLSPERSLOT*USBCL_1024

//Fixed Initial Ranging and Bandwidth Setup
#define INITIAL_RNG_FIXED_SLOTS 18
#define CONTENTION_BWR_FIXED_SLOTS 12


//Modulation and Coding Scheme Setup
#define MOD_BPSK  1 //Modulation scheme BPSK 1bit
#define MOD_QPSK  2 //Modulation scheme BPSK 2bit
#define MOD_16QAM 4 //Modulation scheme BPSK 4bit
#define MOD_64QAM 6 //Modulation scheme BPSK 6bit

//CID Setup
#define BscRange      0x100
#define PmyRange      0x100
#define TptUgsRange   0x100
#define TptRtpsRange  0x100
#define TptNrtpsRange 0x100
#define TptBsRange    0x100
#define BscBase       0x0
#define PmyBase       0x100
#define TptUgsBase    0x200
#define TptRtpsBase   0x300
#define TptNrtpsBase  0x400
#define TptBsBase     0x500



#define SORTSWAP(x,y) {QIP *t; t = x; x = y; y = t;} 